package com.edu.fjnu.eshop.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.edu.fjnu.eshop.dao.FirstCatelogMapper;
import com.edu.fjnu.eshop.domain.FirstCatelog;

import java.util.List;

@Service("FirstCatelogService")
public class FirstCatelogServiceImpl implements FirstCatelogService {

    @Autowired
    FirstCatelogMapper firstCatelogMapper;

    public List<FirstCatelog> getAll() {
        return firstCatelogMapper.getAll();
    }

    public void update(FirstCatelog user) {
    	firstCatelogMapper.update(user);
    }

	public FirstCatelog getFirstCatelogById(int FirstCatelogId) {
		return firstCatelogMapper.getFirstCatelogById(FirstCatelogId);
	}

	public void save(FirstCatelog firstCatelog) {
		// TODO Auto-generated method stub
		firstCatelogMapper.save(firstCatelog);
	}

	public void delete(int ID) {
		// TODO Auto-generated method stub
		firstCatelogMapper.delete(ID);
	}
}
